﻿@model FinancePortal.Domain.Model.ActivitySchedule
<div style="padding-bottom: 5px">
    <div style="width: 120px; float: left;">
        From:</div>
    @Html.DisplayFor(m => m.FromDate)</div>
<div style="padding-bottom: 5px">
    <div style="width: 120px; float: left;">
        To:</div>
    @Html.DisplayFor(m => m.ToDate)</div>
<div style="padding-bottom: 5px">
    <div style="width: 120px; float: left;">
        Activity:</div>
    @Html.DisplayFor(m => m.Activity.Name)</div>
<div style="padding-bottom: 5px">
    <div style="width: 120px; float: left;">
        Description:</div>
    @Html.DisplayFor(m => m.Activity.Description)</div>
<div style="padding-bottom: 5px">
    <div style="width: 120px; float: left;">
        Owner:</div>
    @Html.DisplayFor(m => m.Owner.Name)</div>
<div style="padding-bottom: 5px">
    <div style="width: 120px; float: left;">
        Complete:</div>
    @Html.CheckBoxFor(m => m.Completed
        , new { disabled = "true" })
</div>
<div>
    Contributors:</div>
@foreach (var p in Model.Participants)
{ 
    <div>
        * @p.Name</div>
}
<div>
    Areas Client:</div>
@foreach (var p in Model.AreasClient)
{ 
    <div>
        * @p.Name</div>
}
<script type="text/javascript">
    $(window).unload(function () {
        if ($('#Completed').val() == 'true') {
            $(".ui-dialog-buttonpane button:contains('Set Complete')").button("disable");
        }
    });
</script>
